package com.cjn.dbtool.start;
/**
 * AUTHOR chenjianan
 * TIME  2017-11-8 15:36
 * REMARK
 */
import com.cjn.dbtool.service.MysqlTool;
import com.cjn.dbtool.util.toolProperties;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class start {

    public static void main(String[] args) {
        ClassPathXmlApplicationContext applicationContext = new ClassPathXmlApplicationContext(new String[]{"classpath*:/spring-mvc.xml"});
        applicationContext.start();
        toolProperties tp= (toolProperties) applicationContext.getBean("toolProperties");
        MysqlTool mysqlTool = new MysqlTool();
        mysqlTool.getMessageForDb(tp.target_url,tp.target_user,tp.target_pwd,tp.target_address);



    }

}
